home *** CD-ROM | disk | FTP | other *** search
/ Internet.Works 41 / Issue 41.iso / pc / PCSoftware / XML Spy 3.5 / xmlspy35.exe / Main / ipo.xsd < prev    next >
Encoding:
Extensible Markup Language  |  2000-12-04  |  1.9 KB  |  62 lines

  1. <!-- edited with XML Spy v3.5 NT beta 1 build Nov 10 2000 (http://www.xmlspy.com) by Alexander Falk (Altova, Inc.) -->
  2. <schema targetNamespace="http://www.example.com/IPO" xmlns="http://www.w3.org/2000/10/XMLSchema" xmlns:ipo="http://www.example.com/IPO">
  3.     <annotation>
  4.         <documentation>
  5.    International Purchase order schema for Example.com
  6.    Copyright 2000 Example.com. All rights reserved.
  7.   </documentation>
  8.     </annotation>
  9.     <!-- include address constructs -->
  10.     <include schemaLocation="address.xsd"/>
  11.     <element name="purchaseOrder" type="ipo:PurchaseOrderType"/>
  12.     <element name="comment" type="string"/>
  13.     <complexType name="PurchaseOrderType">
  14.         <sequence>
  15.             <element name="shipTo">
  16.                 <complexType>
  17.                     <sequence>
  18.                         <element ref="ipo:Address"/>
  19.                     </sequence>
  20.                 </complexType>
  21.             </element>
  22.             <element name="billTo">
  23.                 <complexType>
  24.                     <sequence>
  25.                         <element ref="ipo:Address"/>
  26.                     </sequence>
  27.                 </complexType>
  28.             </element>
  29.             <element ref="ipo:comment" minOccurs="0"/>
  30.             <element name="Items" type="ipo:Items"/>
  31.         </sequence>
  32.         <attribute name="orderDate" type="date"/>
  33.     </complexType>
  34.     <complexType name="Items">
  35.         <sequence>
  36.             <element name="item" minOccurs="0" maxOccurs="unbounded">
  37.                 <complexType>
  38.                     <sequence>
  39.                         <element name="productName" type="string"/>
  40.                         <element name="quantity">
  41.                             <simpleType>
  42.                                 <restriction base="positiveInteger">
  43.                                     <maxExclusive value="100"/>
  44.                                 </restriction>
  45.                             </simpleType>
  46.                         </element>
  47.                         <element name="price" type="decimal"/>
  48.                         <element ref="ipo:comment" minOccurs="0"/>
  49.                         <element name="shipDate" type="date" minOccurs="0"/>
  50.                     </sequence>
  51.                     <attribute name="partNum" type="ipo:Sku"/>
  52.                 </complexType>
  53.             </element>
  54.         </sequence>
  55.     </complexType>
  56.     <simpleType name="Sku">
  57.         <restriction base="string">
  58.             <pattern value="\d{3}-[A-Z]{2}"/>
  59.         </restriction>
  60.     </simpleType>
  61. </schema>
  62.